package com.warom.sdg.util;

import java.util.Calendar;

/**
 * 日期时间工具类
 */
public class DateTimeUtil {

    /**
     * 获取当天零点的毫秒时间戳
     * @return 当天零点的毫秒时间戳
     */
    public static long getStartOfDay() {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        return calendar.getTimeInMillis();
    }
} 